
<template>
  <div class="box">

    <div class="login">
      <!-- 登录框 -->
      <div class="title">
        <div class="text">
          <span>欢迎使用源效</span>
        </div>


        <el-form :model="form" class="form-s">
          <el-form-item>
            <el-input class="input" size="large" v-model="form.phone" placeholder="请输入管理员手机号" />
          </el-form-item>

          <el-form-item>
            <el-input class="input" size="large" v-model="form.password" placeholder="请输入登录密码" />
          </el-form-item>


          <el-form-item>
            <el-button class="input" type="primary" @click="login">登录</el-button>
          </el-form-item>
        </el-form>

      </div>
      <!-- 备案 -->
      <div class="beian">
        {{ record }}
      </div>
    </div>
    <!-- 图片 -->
    <div class="image">
    </div>



  </div>
</template>

<script setup lang="ts">
let record = ref('© 2014-2023 杭州云片网络科技有限公司')




const form = reactive({
  phone: '',
  password: '',
})
// 登录
const login = () => {
  record.value = 'abc'
}
</script>

<style scoped lang="less">
.box {
  width: 100%;
  height: 100%;
}

.image {
  width: 50%;
  height: 100%;
  float: left;
  position: absolute;
  background-image: url(/src/assets/image/beijing.png);
  background-position: center center;
  background-size: cover;
  top: 0px;
}

.login {
  width: 50%;
  height: 100%;
  float: right;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;

  .beian {
    position: absolute;
    bottom: 0;
    margin-bottom: 24px;
    color: #999999;
  }

  .title {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    .text{
      width: 100%;
    }

    .form-s {
      margin-top: 40px;

      .input {
        width: 400px;
        height: 56px;
        margin-bottom: 8px;
      }
    }
  }
}
</style>



